﻿@model DingTalkAgent.Model.SysAction
@{
    ViewBag.Title = "Add";
    Layout = null;
}

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <h4 class="modal-title">添加动作</h4>
</div>
<div class="modal-body">
    @using (Html.BeginForm("SysAAdd", "SysBase", FormMethod.Post, new { id = "form_Add", name = "form_Add" }))
            {
        <table cellspacing="0" cellpadding="0" width="100%" class="table">
            <tr>
                <th>
                    Page_ID：
                </th>
                <td>
                    @Html.TextBox("Page_ID", (int)ViewBag.Page_ID, new { @readonly = "readonly", @class = "form-control" })
                    <div>
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                    动作名称：
                </th>
                <td>
                    @Html.TextBoxFor(model => model.Act_Name, new { @class = "form-control" })
                    <div>
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                    对应Controller：
                </th>
                <td>
                    @Html.TextBoxFor(model => model.Controller, new { @class = "form-control" })
                    <div>
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                    动作：
                </th>
                <td>
                    @Html.TextBoxFor(model => model.Action, new { @class = "form-control" })
                    <div>
                    </div>
                </td>
            </tr>
        </table>

    }
    <div class="remark">
        <div class="remark_tit">
            温馨提示
        </div>
        <div class="remark_content">
            <p>
                <span class="must">*</span>*项必须填写。
            </p>
        </div>
    </div>
</div>

<div class="modal-footer">
    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
    <button type="button" class="btn btn-primary" id="Add">保存</button>
</div>


<script type="text/javascript">
    $(document).ready(function () {
        $("#Add").click(function () {
            SetData("/SysBase/SysAAdd", '信息添加成功!');
        });
    });
</script>
